<?php
/**
 * Abstract model for an SQL DELETE query.
 */
abstract class SQLDelete {
	protected $strTableName;
	protected $objConditions;
	
	/**
	 * Sets table name directly from constructor.
	 * 
	 * @param string $strTableName
	 */
	public function __construct($strTableName) {
		$this->strTableName = $strTableName;
	}
	
	/**
	 * Sets WHERE clause for query.
	 * 
	 * @param SQLConditionsClause $objSQLConditionsClause
	 * @return SQLDelete
	 */
	public function setConditions($objSQLConditionsClause) {
		$this->objConditions = $objSQLConditionsClause;
		return $this;
	}
	
	abstract public function toString();
	
}